﻿package control
{
    import com.core.*;

    public class LianZhanControl extends Control
    {

        public function LianZhanControl(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function update(param1:Obproxy, param2:ProxyChange) : void
        {
            if (param1.getName() == "lianzhan")
            {
                if (param2.property == "add")
                {
                    if (param2.newvalue)
                    {
                        this.target.add(param2.newvalue);
                    }
                    else
                    {
                        this.target.add();
                    }
                }
                else if (param2.property == "close")
                {
                    this.target.close();
                }
            }
            return;
        }// end function

    }
}
